import request from '../../../utils/request'

function getProjectTree(params) {
  return request({
    url: '/jklc/tunnel/getTree',
    method: 'get',
    params
  })
}

function getPositionData(params) {
  return request({
    url: '/jklc/tunnel/getInfo',
    method: 'get',
    params
  })
}

function addPosition(data) {
  return request({
    url: '/jklc/tunnel',
    method: 'POST',
    data
  })
}

function setPosition(data) {
  return request({
    url: '/jklc/tunnel',
    method: 'put',
    data
  })
}

function delPosition(data) {
  return request({
    url: '/jklc/tunnel',
    method: 'delete',
    data
  })
}

export {
  getProjectTree,
  getPositionData,
  addPosition,
  setPosition,
  delPosition

}